Skip to content

Fix exceptions handling in task dynamic invocation#360

Merged
TheAngryByrd merged 1 commit into
demystifyfp:masterfrom
auduchinok:dynamic
Apr 21, 2026
Merged

Fix exceptions handling in task dynamic invocation#360
TheAngryByrd merged 1 commit into
demystifyfp:masterfrom
auduchinok:dynamic

Conversation

@auduchinok

Copy link
Copy Markdown
Contributor

Fixes task handling when dynamic invocations are used.

The context is I'm working on dotnet/fsharp#19548 which improves debugging experience by preventing inlining where possible and allowing stepping into inline functions and setting breakpoints there. This makes the compiler produce the dynamic invocations instead of the state machines, and this uncovered exceptions in FsToolkit.ErrorHandling tests.

@TheAngryByrd TheAngryByrd left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@TheAngryByrd TheAngryByrd merged commit a934868 into demystifyfp:master Apr 21, 2026
26 checks passed
@auduchinok auduchinok deleted the dynamic branch April 21, 2026 13:14
TheAngryByrd added a commit that referenced this pull request Jun 2, 2026
- BREAKING: [Move `ValueTaskValueOption` to the IcedTasks package](#363) Credits @TheAngryByrd
- This was misplaced originally as it depends on IcedTasks since it's using valueTasks. If you were using this before, add
FsToolkit.ErrorHandling.IcedTasks as a dependency.
- [Add `partitionResults` with single-pass implementations for Array, List, and Seq](#359) Credits @bpe-incom
- [Fix exception handling in task dynamic invocation](#360) Credits Eugene Auduchinok
- [Improve performance of task applicative helpers, array traversal helpers, option workflows, and list task traversal](#364) Credits @TheAngryByrd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants